Integrand size = 23, antiderivative size = 221 \[ \int \frac {\cos ^4(c+d x)}{(a+b \sin (c+d x))^{5/2}} \, dx=-\frac {2 \cos ^3(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {32 a E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{3 b^4 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {8 \left (4 a^2-b^2\right ) \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{3 b^4 d \sqrt {a+b \sin (c+d x)}}-\frac {4 \cos (c+d x) (4 a+b \sin (c+d x))}{3 b^3 d \sqrt {a+b \sin (c+d x)}} \]
[Out]
Time = 0.23 (sec) , antiderivative size = 221, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {2772, 2942, 2831, 2742, 2740, 2734, 2732} \[ \int \frac {\cos ^4(c+d x)}{(a+b \sin (c+d x))^{5/2}} \, dx=\frac {8 \left (4 a^2-b^2\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right ),\frac {2 b}{a+b}\right )}{3 b^4 d \sqrt {a+b \sin (c+d x)}}-\frac {32 a \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{3 b^4 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {4 \cos (c+d x) (4 a+b \sin (c+d x))}{3 b^3 d \sqrt {a+b \sin (c+d x)}}-\frac {2 \cos ^3(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}} \]
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2772
Rule 2831
Rule 2942
Rubi steps \begin{align*} \text {integral}& = -\frac {2 \cos ^3(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {2 \int \frac {\cos ^2(c+d x) \sin (c+d x)}{(a+b \sin (c+d x))^{3/2}} \, dx}{b} \\ & = -\frac {2 \cos ^3(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {4 \cos (c+d x) (4 a+b \sin (c+d x))}{3 b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {8 \int \frac {-\frac {b}{2}-2 a \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx}{3 b^3} \\ & = -\frac {2 \cos ^3(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {4 \cos (c+d x) (4 a+b \sin (c+d x))}{3 b^3 d \sqrt {a+b \sin (c+d x)}}-\frac {(16 a) \int \sqrt {a+b \sin (c+d x)} \, dx}{3 b^4}+\frac {\left (4 \left (4 a^2-b^2\right )\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx}{3 b^4} \\ & = -\frac {2 \cos ^3(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {4 \cos (c+d x) (4 a+b \sin (c+d x))}{3 b^3 d \sqrt {a+b \sin (c+d x)}}-\frac {\left (16 a \sqrt {a+b \sin (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}} \, dx}{3 b^4 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {\left (4 \left (4 a^2-b^2\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{3 b^4 \sqrt {a+b \sin (c+d x)}} \\ & = -\frac {2 \cos ^3(c+d x)}{3 b d (a+b \sin (c+d x))^{3/2}}-\frac {32 a E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{3 b^4 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {8 \left (4 a^2-b^2\right ) \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{3 b^4 d \sqrt {a+b \sin (c+d x)}}-\frac {4 \cos (c+d x) (4 a+b \sin (c+d x))}{3 b^3 d \sqrt {a+b \sin (c+d x)}} \\ \end{align*}
Time = 0.74 (sec) , antiderivative size = 174, normalized size of antiderivative = 0.79 \[ \int \frac {\cos ^4(c+d x)}{(a+b \sin (c+d x))^{5/2}} \, dx=\frac {32 a (a+b)^2 E\left (\frac {1}{4} (-2 c+\pi -2 d x)|\frac {2 b}{a+b}\right ) \left (\frac {a+b \sin (c+d x)}{a+b}\right )^{3/2}-8 (a+b) \left (4 a^2-b^2\right ) \operatorname {EllipticF}\left (\frac {1}{4} (-2 c+\pi -2 d x),\frac {2 b}{a+b}\right ) \left (\frac {a+b \sin (c+d x)}{a+b}\right )^{3/2}+b \cos (c+d x) \left (-16 a^2-3 b^2+b^2 \cos (2 (c+d x))-20 a b \sin (c+d x)\right )}{3 b^4 d (a+b \sin (c+d x))^{3/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1045\) vs. \(2(267)=534\).
Time = 1.95 (sec) , antiderivative size = 1046, normalized size of antiderivative = 4.73
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.16 (sec) , antiderivative size = 705, normalized size of antiderivative = 3.19 \[ \int \frac {\cos ^4(c+d x)}{(a+b \sin (c+d x))^{5/2}} \, dx=\frac {2 \, {\left (2 \, {\left (\sqrt {2} {\left (8 \, a^{2} b^{2} - 3 \, b^{4}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} {\left (8 \, a^{3} b - 3 \, a b^{3}\right )} \sin \left (d x + c\right ) - \sqrt {2} {\left (8 \, a^{4} + 5 \, a^{2} b^{2} - 3 \, b^{4}\right )}\right )} \sqrt {i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right ) + 2 \, {\left (\sqrt {2} {\left (8 \, a^{2} b^{2} - 3 \, b^{4}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} {\left (8 \, a^{3} b - 3 \, a b^{3}\right )} \sin \left (d x + c\right ) - \sqrt {2} {\left (8 \, a^{4} + 5 \, a^{2} b^{2} - 3 \, b^{4}\right )}\right )} \sqrt {-i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right ) + 24 \, {\left (i \, \sqrt {2} a b^{3} \cos \left (d x + c\right )^{2} - 2 i \, \sqrt {2} a^{2} b^{2} \sin \left (d x + c\right ) + \sqrt {2} {\left (-i \, a^{3} b - i \, a b^{3}\right )}\right )} \sqrt {i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right )\right ) + 24 \, {\left (-i \, \sqrt {2} a b^{3} \cos \left (d x + c\right )^{2} + 2 i \, \sqrt {2} a^{2} b^{2} \sin \left (d x + c\right ) + \sqrt {2} {\left (i \, a^{3} b + i \, a b^{3}\right )}\right )} \sqrt {-i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right )\right ) - 3 \, {\left (b^{4} \cos \left (d x + c\right )^{3} - 10 \, a b^{3} \cos \left (d x + c\right ) \sin \left (d x + c\right ) - 2 \, {\left (4 \, a^{2} b^{2} + b^{4}\right )} \cos \left (d x + c\right )\right )} \sqrt {b \sin \left (d x + c\right ) + a}\right )}}{9 \, {\left (b^{7} d \cos \left (d x + c\right )^{2} - 2 \, a b^{6} d \sin \left (d x + c\right ) - {\left (a^{2} b^{5} + b^{7}\right )} d\right )}} \]
[In]
[Out]
\[ \int \frac {\cos ^4(c+d x)}{(a+b \sin (c+d x))^{5/2}} \, dx=\int \frac {\cos ^{4}{\left (c + d x \right )}}{\left (a + b \sin {\left (c + d x \right )}\right )^{\frac {5}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {\cos ^4(c+d x)}{(a+b \sin (c+d x))^{5/2}} \, dx=\int { \frac {\cos \left (d x + c\right )^{4}}{{\left (b \sin \left (d x + c\right ) + a\right )}^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(c+d x)}{(a+b \sin (c+d x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(c+d x)}{(a+b \sin (c+d x))^{5/2}} \, dx=\int \frac {{\cos \left (c+d\,x\right )}^4}{{\left (a+b\,\sin \left (c+d\,x\right )\right )}^{5/2}} \,d x \]
[In]
[Out]